<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
<h:head>
<title>Ricerca elemento</title>
		<link rel="stylesheet" type="text/css" href="style/reset.css" media="screen,print" />
		<link rel="stylesheet" type="text/css" href="style/print.css" media="print" />
		<link rel="stylesheet" type="text/css" href="style/style.css" media="screen,print" />
		<link rel="stylesheet" type="text/css" href="style/template.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="style/menu.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="pcss/pagina-3.css" media="screen" />
	</h:head>


<h:body onload="#{ricerca.loadData()}">
		<div id="imHeaderBg"></div>
		<div id="imFooterBg"></div>
		<div id="imPage">
			<div id="imHeader">
				<h1 class="imHidden">Area Personale</h1>
			</div>
			<a class="imHidden" href="#imGoToCont" title="Salta il menu di navigazione">Vai ai contenuti</a>
			<a id="imGoToMenu"></a><p class="imHidden">Menu principale:</p>
			<div id="imMnMn" class="auto">
				<ul class="auto">
					<li id="imMnMnNode0" class="imMnMnCurrent">
						<a href="http://localhost:8080/TravelDreamOnlineWeb">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Home Page</span>
							</span>
						</a>
					</li><li id="imMnMnNode3" >
						<a href="http://localhost:8080/TravelDreamOnlineWeb/user/index.xhtml">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Area Personale</span>
							</span>
						</a>
					</li><li id="imMnMnNode4">
						<a href="http://localhost:8080/TravelDreamOnlineWeb/admin/index.xhtml">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Area Riservata</span>
							</span>
						</a>
					</li><li id="imMnMnNode5">
						<a href="http://localhost:8080/TravelDreamOnlineWeb/contatti.html">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Contatti</span>
							</span>
						</a>
					</li>
				</ul>
			</div>
			<div id="imContentGraphics"></div>
			<div id="imContent">
			
<!--INSERIRE QUI LA PAGINA>
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
<-->			
			

	<h:form>  
	<h1>Ricerca elementi base</h1> 
	<p:growl id="growl" showDetail="true" sticky="true" /> 
	
	<p:contextMenu for="dataTable">  
	 	<p:menuitem value="Dettaglio" update="display" icon="ui-icon-search" outcome="user/ricerca.xhtml"/>
        <p:menuitem value="Paga" update="growl" icon="ui-icon-search" outcome="user/ricerca.xhtml"/>  
        <p:menuitem value="Aggiungi a GiftList" update="growl" icon="ui-icon-search" outcome="user/ricerca.xhtml"/>  
   		<p:menuitem value="Aggiungi a Pacchetto" update="display1" icon="ui-icon-search" outcome="user/ricerca.xhtml"/>  
    </p:contextMenu>  
    

    <p:dataTable id="dataTable" var="elemento" value="#{ricerca.elementi}" widgetVar="carsTable"   
            emptyMessage="Nessun elemento trovato" filteredValue="#{ricerca.filteredElementi}"
            rowKey="#{elemento.nome}" selection="#{ricerca.selectedElemento}" selectionMode="single">  

        <p:column id="nomeCol" filterBy="nome"   
                headerText="Nome" 
                filterMatchMode="contains">  
            <h:outputText value="#{elemento.nome}" />  
        </p:column> 
        
         <p:column id="dataCol" filterBy="data"   
                headerText="Data"
                filterMatchMode="contains">  
            <h:outputText value="#{elemento.data}" />  
        </p:column> 
        
                
      	<p:column id="oraCol" filterBy="ora"   
                headerText="Ora"
                filterMatchMode="contains">  
            <h:outputText value="#{elemento.ora}" />  
        </p:column> 
         
          <p:column id="prezzoCol" filterBy="prezzo"   
                headerText="Prezzo"  
                filterMatchMode="contains">  
            <h:outputText value="#{elemento.prezzo}" />  
        </p:column> 
  
       <p:column id="tipoCol" filterBy="tipo"   
                headerText="Tipo"  
                filterMatchMode="contains">  
            <h:outputText value="#{elemento.tipo}" />  
        </p:column> 
              
    </p:dataTable>  
    
    
</h:form>
<!--FINE DELLA PAGINA>
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
<-->						
				
								
			</div>		
			<div id="imFooter">
				
			</div>
	</div>
		<span class="imHidden"><a href="#imGoToCont" title="Rileggi i contenuti della pagina">Torna ai contenuti</a> | <a href="#imGoToMenu" title="Naviga ancora nella pagina">Torna al menu</a></span>
		
	<noscript class="imNoScript"><div class="alert alert-red">Per poter utilizzare questo sito è necessario attivare JavaScript.</div></noscript>
				</h:body>
</html>
